package com.example.hilt_learn.bean

import javax.inject.Inject

/*class User @Inject constructor() {
    var name: String = "John Doe"
    var age: Int = 18

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as User

        if (name != other.name) return false
        if (age != other.age) return false

        return true
    }

    override fun hashCode(): Int {
        var result = name.hashCode()
        result = 31 * result + age
        return result
    }

    override fun toString(): String {
        return "User(name='$name', age=$age)"
    }
}*/

data class User(
    var name: String = "John Doe",
    var age: Int = 18
) {
    @Inject
    constructor() : this("John Doe", 18)
}